package cn.iocoder.yudao.module.lifefly.web.service;

import cn.iocoder.yudao.framework.common.util.http.HttpOKUtils;
import com.yomahub.liteflow.script.annotation.ScriptBean;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@ScriptBean("cls")
public class LiteFlowScriptBean {

    public static String getStringByGetInHttp(String path, Map<String, String> params, Map<String, String> header) {
        return HttpOKUtils.getStringByGet(path, params, header);
    }

    public static String getStringByPostInHttp(String path, String jsonParam, Map<String, String> header) {
        return HttpOKUtils.getStringByPost(path, jsonParam, header);
    }
}
